import axios from "axios";


const acceptRoughTaskByCrowdId = async (taskId:number,crowdId: number) => {
    return new Promise(((resolve, reject) => {
        axios.get("/api/rough-task/allotTaskByCrowdId", {
            params: {
                taskId,
                crowdId
            }
        }).then((response) => {
            resolve = response.data;
        })
    }))
}
export default acceptRoughTaskByCrowdId;